package moodish.comm;

import java.io.Serializable;

/**
 * @author Grupo26
 * @version 0.1
 */

public class ClientSideMessageClass implements ClientSideMessage, Serializable {

	private static final long serialVersionUID = 1L;
	private String payLoad;
	private String sendersNickName;
	private Type type;

	public ClientSideMessageClass(String payLoad, String sendersNickName, Type type) {
		this.payLoad = payLoad;
		this.sendersNickName = sendersNickName;
		this.type = type;
	}

	@Override
	public Type getType() {
		
		return type;
	}

	@Override
	public String getSendersNickname() {
		
		return sendersNickName;
	}

	@Override
	public String getPayload() {
		
		return payLoad;
	}

}
